popover: allow setting popup layout offset
authorChristian Hergert <chergert@redhat.com>
Sat, 8 Aug 2020 00:06:08 +0000 (17:06 -0700)
committerChristian Hergert <chergert@redhat.com>
Sat, 8 Aug 2020 00:10:52 +0000 (17:10 -0700)
commit4d88e3af171a0eecca3e944ff649d2116905601c
treeb7dc847cfe1a1c8812f7cae5d0bbf0f0c25bbcbd
parent7625ccd6fac09a4e341608d1de60a8c332368346
popover: allow setting popup layout offset

Currently there is no way to alter the offset of the popup when positioning
with GdkPopupLayout. This makes using the popup difficult for scenarios
like completion windows where you may need to offset the window by a given
amount for aligning text.

gtk_popover_set_offset() allows setting these values and are analagous to
the function of the same name for GdkPopupLayout.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkpopover.c
gtk/gtkpopover.h